package day07;
//重载的演示
public class OverloadDemo {
    public static void main(String[] args) {
        show();
        show("zhangsan");
        show(26);
        show("dong",27);
        show(25,"hsd");
        //show(3.15); //编译错误，没有double参的show
    }

    //方法的签名：方法名(参数列表)，方法的签名不同即为方法的重载
    public static void show(){}
    public static void show(String name){}
    public static void show(int age){}
    public static void show(String name,int age){}
    public static void show(int age,String name){}
    //public static int show(){return 1;} //编译错误，重载与返回值类型无关
    //public static void show(String address){} //编译错误，重载与参数名称无关
}